//
//  HWBookShelfModel.m
//  嗨文
//
//  Created by 响当当 on 4/24/19.
//  Copyright © 2019 dongzheng. All rights reserved.
//

#import "HWBookShelfModel.h"

@implementation HWBookShelfModel
- (id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init])
    {
        self.likeStaus = IFNULL(dic[@"likeStaus"], [NSNumber new]);
        self.lastChapterTitle = IFNULL(dic[@"lastChapterTitle"], [NSString string]);
        self.bookStatus = IFNULL(dic[@"bookStatus"], [NSNumber new]);
        self.authorName = IFNULL(dic[@"authorName"], [NSString string]);
        self.readingChapterOrder = IFNULL(dic[@"readingChapterOrder"], [NSString string]);
        self.hasNew = dic[@"hasNew"];
        self.readLikeId = IFNULL(dic[@"readLikeId"], [NSNumber new]);
        self.updateTime = IFNULL(dic[@"updateTime"], [NSString string]);
        self.bookName = IFNULL(dic[@"bookName"], [NSString string]);
        self.bookCover = IFNULL(dic[@"bookCover"], [NSString string]);
        self.bookId = IFNULL(dic[@"bookId"], [NSNumber new]);


    }
    return self;
}
@end
